package com.sl.hx.shop.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;


public class GoodsClassify implements Parcelable {


    /**
     * id : 5
     * name : 男装
     * sub : [{"id":"6","name":"男T恤","logosplash":"http://www.hxgo.shengli1718.com/Uploads/admin/image/2018-11-28/5bfe01dc65e8f.png"}]
     */

    private String id;
    private String name;
    private List<SubBean> sub;


    public GoodsClassify(Parcel in) {
        id = in.readString();
        name = in.readString();
    }

    public static final Creator<GoodsClassify> CREATOR = new Creator<GoodsClassify>() {
        @Override
        public GoodsClassify createFromParcel(Parcel in) {
            return new GoodsClassify(in);
        }

        @Override
        public GoodsClassify[] newArray(int size) {
            return new GoodsClassify[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<SubBean> getSub() {
        return sub;
    }

    public void setSub(List<SubBean> sub) {
        this.sub = sub;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(id);
        parcel.writeString(name);
    }

    public static class SubBean {
        /**
         * id : 6
         * name : 男T恤
         * logosplash : http://www.hxgo.shengli1718.com/Uploads/admin/image/2018-11-28/5bfe01dc65e8f.png
         */

        private String id;
        private String name;
        private String logo;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }
    }

}
